using ColladaDotNet.OpenTKMapping;

using OpenTK;

namespace ColladaDotNet.SimpleMesh
{
	public class Bone
	{
		private readonly string name;

		private ulong index;

		private Matrix4d invBindMatrix = Matrix4d.Identity;

		private Matrix4d matrix = Matrix4d.Identity;

		public Bone(string name)
		{
			this.name = name;
		}

		public ulong Index
		{
			get
			{
				return index;
			}
			set
			{
				index = value;
			}
		}

		public string Name
		{
			get
			{
				return name;
			}
		}

		public Matrix4d InvBindMatrix
		{
			get
			{
				return invBindMatrix;
			}
			set
			{
				invBindMatrix = value;
			}
		}

		public Matrix4d Matrix
		{
			get
			{
				return matrix;
			}
			set
			{
				matrix = value;
			}
		}

		public void Copy(Bone value)
		{
		
		}

		public void ScalePosition(double factor)
		{
			/*
			matrix.Invert();
			matrix.M14 *= factor;
			matrix.M24 *= factor;
			matrix.M34 *= factor;
			matrix.Invert();

			invBindMatrix.Invert();
			invBindMatrix.M14 *= factor;
			invBindMatrix.M24 *= factor;
			invBindMatrix.M34 *= factor;
			invBindMatrix.Invert();
			*/
		}
	}
}